package com.aiyige.base.eventbus;

import com.aiyige.page.publish.selectlocation.model.SelectLocationData;

public class EventSelectLocation {
    int resultCode;
    SelectLocationData data;

    public EventSelectLocation() {
    }

    private EventSelectLocation(Builder builder) {
        setResultCode(builder.resultCode);
        setData(builder.data);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public SelectLocationData getData() {
        return data;
    }

    public void setData(SelectLocationData data) {
        this.data = data;
    }

    public static final class Builder {
        private int resultCode;
        private SelectLocationData data;

        private Builder() {
        }

        public Builder resultCode(int val) {
            resultCode = val;
            return this;
        }

        public Builder data(SelectLocationData val) {
            data = val;
            return this;
        }

        public EventSelectLocation build() {
            return new EventSelectLocation(this);
        }
    }
}
